import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-merchant/merchant/seller/drawerList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

/* 商户新增变更详情 */
export const getDetail = (id) => {
  return request({
    url: '/api/rb-merchant/merchant/seller/drawerInfo',
    method: 'get',
    params: {
        id
    }
  })
}

export const save = (row) => {
  return request({
    url: '/api/rb-merchant/merchant/seller/addDrawer',
    method: 'post',
    data: row
  })
}